<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改用户文件夹')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content pt-md">
    <form class="form-horizontal" id="form-doc-edit">
        <input name="id" th:field="${userDoc.fileId}" type="hidden">
        <input name="fileType" value="0" type="hidden">
        <input name="parentId" type="hidden" th:value="${userDoc.parentId}"/>

        <div class="form-group">
            <label class="col-sm-3 control-label is-required">文件夹名称：</label>
            <div class="col-sm-8">
                <input name="fileName" class="form-control"  required th:field="${userDoc.fileName}"  type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "gy/userDoc";

    $("#form-doc-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-doc-edit').serialize());
        }
    }
</script>
</body>
</html>
